package com.zyh.file;

import java.io.File;

public class FileDemo1 {
    public static void main(String[] args) {
        File file = new File("D:\\course\\02-JavaSE进阶\\day05-常用类-5\\笔记\\第09章-java常用类.doc");
        System.out.println("file.exists() = " + file.exists());
        File file1 = new File("D:\\course\\02-JavaSE进阶\\day05-常用类-5\\笔记", "第09章-java常用类.doc");
        System.out.println("file1.exists() = " + file1.exists());
        File parentFile = new File("D:\\course\\02-JavaSE进阶\\day05-常用类-5\\笔记");
        File file2 = new File(parentFile, "第09章-java常用类.doc");
        System.out.println("file2.exists() = " + file2.exists());
    }
}
